package com.qingzhuge.limiter.configuration;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zeroxiao
 * @date 2019/9/6 14:26
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "rate-limiter")
public class SentinelProperties {
    /**token-server 地址*/
    private String tokenServerHost = "localhost";
    /**token-server 端口*/
    private int tokenServerPort = 9999;
    //请求超时时间,小于200000服务会降级，作者说是和网络环境有关
    /**请求超时时间*/
    private int requestTimeOut = 200000;
    /**namespace*/
    private String namespace = "luna";

    /** nacos 配置中心 host*/
    private String nacosAddress = "127.0.0.1";
    private String groupId = "SENTINEL_GROUP";
    /**dataid（names+postfix）*/
    private String dataId = "-flow-rules";
}
